All Tokens
Queries all the tokens availabe in the Euclid layer.
query All_tokens($max: String, $min: String, $skip: Int, $limit: Int) {
router {
all_tokens(max: $max, min: $min, skip: $skip, limit: $limit) {
tokens
}
}
}
Example
curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query All_tokens($max: String, $min: String, $skip: Int, $limit: Int) {\n router {\n all_tokens(max: $max, min: $min, skip: $skip, limit: $limit) {\n tokens\n }\n }\n}","variables":{"max":"stars","min":"euclid","skip":null,"limit":7}}'
Arguments
- max (Token Id): The upper limit token Id that should be returned. Does not include the specified max value.
- min (Token Id): The lower limit token Id to start from. Includes the specified min value.
- skip (Int): The number of results to skip in the response.
- limit (Int): The maximum number of results to return.
Return Fields
Field | Type | Description |
---|---|---|
token | String | The Id of the token. |